import qkyjava.JavaBaseListener;
import qkyjava.JavaParser;

public class TestJavaListener extends JavaBaseListener {
    /**
     * {@inheritDoc}
     *
     * <p>The default implementation does nothing.</p>
     */
    @Override public void enterPackageDeclaration(JavaParser.PackageDeclarationContext ctx) {
        System.out.println(111);
        System.out.println(ctx.getText());
        System.out.println(222);
    }
    /**
     * {@inheritDoc}
     *
     * <p>The default implementation does nothing.</p>
     */
    @Override public void exitPackageDeclaration(JavaParser.PackageDeclarationContext ctx) {
        System.out.println(333);
        System.out.println(ctx.getText());
    }
}
